package com.ruoyi.common.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.annotation.query.DateRange;
import com.ruoyi.common.annotation.query.DateTimeRange;
import lombok.Data;

import java.util.List;

/**
 * 查询条件基类
 * @author chenyun
 */
@Data
public abstract class SuperQuery<T> {

    @TableField(exist = false)
    private String orderBy;
    /** 默认查询 */
    public abstract String getDefaultOrderBy();

    @DateRange
    @TableField(exist = false)
    private List<String> dateRange;

    @DateTimeRange
    @TableField(exist = false)
    private List<String> dateTimeRange;

}
